package com.yxt.qmgf.snake.view;

import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;

public class SnakeRoleWindow {

    public void start(Stage stage) {
        try {
            Parent root = FXMLLoader.load(getClass().getResource("/fxml/snake/SnakeRoleWindow.fxml"));
            Scene scene = new Scene(root, 450, 370);
            stage.setScene(scene);
            stage.setTitle("贪吃蛇游戏规则");
            stage.show();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}